<%@ include file="/common/taglibs.jsp"%>
<c:set var="pageNoUrl"><spring:url value="/search.html">
	<spring:param name="keyWord" value="${keyWord}"/>
	<spring:param name="pageNo" value=""/>
</spring:url></c:set>

<c:set var="headerMsg"><spring:message code="main.search" arguments="${keyWord}"/></c:set>

<head>
	<title><c:out value="${headerMsg}"/></title>
	<script type="text/javascript">
	var onLoad = true;
	$(document).ready(function(){
		$(".booksDetailPaging").pagination(${maxBooks}, {
	        items_per_page: ${numberOfBooksPerDetailPage},
	        current_page : ${pageNo - 1},
	        link_to : "#",
	        callback: function (page_index){
		        if(!onLoad){
		        	location.assign("${pageNoUrl}" + (page_index + 1));
		        } else{
					onLoad = false;
		        }
	    	}
	    });
    });
    
	</script>
</head>
<%@ include file="detailsContent.jsp" %>